package br.ucb.cesbdao.beans;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import br.ucb.cesbdao.model.AcessoModel;
import br.ucb.cesbdao.model.impl.AcessoModelImpl;

@AllArgsConstructor
@NoArgsConstructor
public class Acesso {
	@Getter @Setter
	private String cpf;
	@Getter @Setter
	private String senha;

	public String toString() {
		return(cpf + " = " + senha);
	}

	public static Acesso getAcesso(String cpf) {
		AcessoModel model = new AcessoModelImpl();
		return model.procuraAcessoCEB(cpf);
	}
	
}
